package com.hxzy.mapper;

import com.hxzy.dto.HouseTypesSearchDTO;
import com.hxzy.entity.HouseTypes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * HouseTypesMapper继承基类
 */
@Mapper
@Repository
public interface HouseTypesMapper extends MyBatisBaseDao<HouseTypes, Integer> {


    List<HouseTypes> search(HouseTypesSearchDTO housetypesSearchDTO);

    int existsName(@Param("id") Integer id, @Param("name") String name);


}